package com.ssy.jt808.protocol.t808;

import com.ssy.jt808.protocol.basics.JTMessage;
import com.ssy.jt808.protocol.commons.JT808;
import io.github.yezhihao.protostar.annotation.Field;
import io.github.yezhihao.protostar.annotation.Message;

import java.time.LocalDateTime;

/**
 * @author yezhihao
 * https://gitee.com/yezhihao/jt808-server
 */
@Message(JT808.查询服务器时间应答)
public class T8004 extends JTMessage{

  @Field(length=6, charset="BCD", desc="UTC时间")
  private LocalDateTime dateTime;

  public T8004(){
  }

  public T8004( LocalDateTime dateTime ){
    this.dateTime = dateTime;
  }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }
}